home *** CD-ROM | disk | FTP | other *** search
- DD - Directory Time/Date
-
- Version 1.1, 06-28-89
-
- Universal Time/Datestamp change utility
-
- Copyright (C) 1989 Ted Stephens
-
-
-
- Disclaimer:
-
- This utility is not warranted to do anything at all. It is
- provided "as-is" only, with no other warranties expressed or
- implied. It may or may not perform according to the specs
- below. Use this utility solely at your own risk.
-
-
- IN NO EVENT WILL I BE LIABLE TO YOU FOR ANY DAMAGES, INCLUDING
- ANY LOST PROFITS, LOST SAVINGS OR OTHER INCIDENTAL OR CONSEQUENTIAL
- DAMAGES ARISING OUT OF YOUR USE OR INABILITY TO USE THE PROGRAM,
- OR FOR ANY CLAIM BY ANY OTHER PARTY.
-
-
- Warning:
-
- You should back-up any disk on which you plan to use this
- utility. DD has been tested on just about every DOS version,
- disk format, and memory size possible; however, this does not
- mean that you should brazenly trust me. Be safe, make a
- backup first. Repeat, MAKE A BACKUP OF YOUR DISK(S) FIRST!
-
-
- License:
-
- DD is provided as freeware. There is are no restrictions on its
- use, except that it may not be sold or distributed on a commercial
- basis or with a commercial package, nor may it be distributed in
- any modified form, nor may it be distributed without this license
- notice and documentation file. The author reserves all rights
- to the source code and executable code.
-
-
-
-
-
-
- DD - Directory Time/Date
-
- Version 1.1, 06-28-89
-
- Universal Time/Datestamp change utility
-
- Copyright (C) 1989 Ted Stephens
-
-
-
- 'DD' is the only known utility around that can change the time
- and date stamp on a DOS subdirectory, or even remove the time/datestamp
- altogether. It accomplishes this with some non-standard techniques,
- as DOS provides no good way to alter time/datestamps on subdirectories.
- It can alter the time/datestamps on files and volume labels as well.
-
- USAGE: DD [filspec] [/Dmm-dd-yy] [/Thh:mm:ss] [/V] [/N] [/SD] [/SF] [/SV] [/SA]
-
- Where: filespec is any valid subdiectory name, including
- wildcards. Paths are not supported. Must
- be in the current directory.
-
- /Dmm-dd-yy specifies the date with which to stamp any
- matching entries. Earliest date is 01-01-80,
- latest is 12-31-99.
-
- /Thh:mm:ss specifies the time with which to stamp any
- matching subdirectories. Must be in 24 hour
- format; i.e. 1:32 p.m. is represented 13:32:00
-
- /V specifies verbose output. All actions are
- reported to the screen. Defaults to quiet
- mode.
-
- /N specifies that the time/datestamp be removed
- from matching entries. Subsequent DIR commands
- will show any matching entries without
- any time or date at all.
-
- /SD select only subdirectories (default)
-
- /SF select only files
-
- /SV select only volume labels (chkdsk hates /SV /N)
-
- /SA select all
-
- Running DD with no parameters brings up a brief help message.
-
- If you do not specify a date the current date is used. If you do
- not specify a time, the current time is used.
-
- Running DD without /D and /T has the effect of stamping all matching
- entries with the current date and time.
-
- DD - Directory Time/Date
-
- Version 1.1, 06-28-89
-
- Universal Time/Datestamp change utility
-
- Copyright (C) 1989 Ted Stephens
-
- EXAMPLES:
-
- Suppose the current directory on your hard disk looks like this:
-
-
- Volume in drive D has no label
- Directory of D:\QB
-
- . <DIR> 5-02-88 9:09a
- .. <DIR> 5-02-88 9:09a
- CURRENT <DIR> 9-21-88 9:43a
- SOURCE <DIR> 11-12-88 3:18p
- LIB <DIR> 6-18-88 12:04p
- RENT A 46073 4-18-89 5:47p
- HARDWARE DAT 107520 4-18-89 2:31p
- RENT EXE 52928 4-18-89 4:31p
- 8 File(s) 29171712 bytes free
-
-
- Now let's play. I Type DD LIB /N <ENTER> The newly revised directory
- looks like this:
-
- Volume in drive D has no label
- Directory of D:\QB
-
- . <DIR> 5-02-88 9:09a
- .. <DIR> 5-02-88 9:09a
- CURRENT <DIR> 9-21-88 9:43a
- SOURCE <DIR> 11-12-88 3:18p
- LIB <DIR>
- RENT A 46073 4-18-89 5:47p
- HARDWARE DAT 107520 4-18-89 2:31p
- RENT EXE 52928 4-18-89 4:31p
- 8 File(s) 29171712 bytes free
-
- Notice the missing time/datestamps on the LIB subdirectory (specified
- by the /N option)
-
- DD - Directory Time/Date
-
- Version 1.1, 06-28-89
-
- Universal Time/Datestamp change utility
-
- Copyright (C) 1989 Ted Stephens
-
-
- Now I type DD .. /T07:14:00 <ENTER> This will change the time
- on the .. subdirectory entry to 7:14 a.m. and the date to the current
- date, as below.
-
-
- Volume in drive D has no label
- Directory of D:\QB
-
- . <DIR> 5-02-88 9:09a
- .. <DIR> 4-19-89 7:14a
- CURRENT <DIR> 9-21-88 9:43a
- SOURCE <DIR> 11-12-88 3:18p
- LIB <DIR>
- RENT A 46073 4-18-89 5:47p
- HARDWARE DAT 107520 4-18-89 2:31p
- RENT EXE 52928 4-18-89 4:31p
- 8 File(s) 29171712 bytes free
-
-
- My personal favorite is DD *.* /N <ENTER> to remove time/datestamps
- from all subdirectory entries. This gives a cleaner, less cluttered
- DIR listing as follows:
-
-
- Volume in drive D has no label
- Directory of D:\QB
-
- . <DIR>
- .. <DIR>
- CURRENT <DIR>
- SOURCE <DIR>
- LIB <DIR>
- RENT A 46073 4-18-89 5:47p
- HARDWARE DAT 107520 4-18-89 2:31p
- RENT EXE 52928 4-18-89 4:31p
- 8 File(s) 29171712 bytes free
-
- DD - Directory Time/Date
-
- Version 1.1, 06-28-89
-
- Universal Time/Datestamp change utility
-
- Copyright (C) 1989 Ted Stephens
-
-
-
-
-
-
-
- Limitations:
-
- DD will check, and will only work under, the following conditions:
-
-
- * DOS version 2.x to 3.30
-
- * 256k free memory
-
- * Maximum 2k sector size
-
- * 12 or 16 bit FAT entries
-
- * Non-network drive
-
-
- Abilities:
-
- DD correctly handles the following:
-
- * 3.5" 720k or 1.44 Mb diskettes
-
- * 5.25" any format up to 1.2 Mb
-
- * Hard disks, including large partitions and third-party partitioning.
-
- * RAM disks. Not too useful, but works.
-
-
-
- DD - Directory Time/Date
-
- Version 1.1, 06-28-89
-
- Universal Time/Datestamp change utility
-
- Copyright (C) 1989 Ted Stephens
-
-
- Notes:
-
- DD uses absolute disk sector reads and writes to bypass DOS. This
- causes most anti-virus type programs to jump up and down excitedly
- while pointing an accusing finger and shouting "Bad Bad!". For this
- reason, you might want to turn off any alarms or traps you have
- installed for virus protection.
-
- Just in case you suspect someone has modified DD to do bad things,
- you can download a clean copy from CompuServe, BprogA-DL2; Exec-PC
- 414-964-5160; or Utility Exchange 614-442-6695. Or, If you are a
- Turbo Pascal programmer and have the Turbo Professional routines
- from TurboPower Software, you can examine the source code for nasty
- stuff and recompile DD. Some things to look for are any references
- to any filenames such as COMMAND.COM, CONFIG.SYS, etc. Also look for
- any sort of TSR request, or any writes to the FAT area. DD does not
- do any of these things, so if you find them, beware.
-
- Revisions:
-
- 1.0 04-19-1989 Initial release.
-
- 1.1 06-28-1989 Changes to check for bad switches.
- Changed some structures to POOP (Pascal Object
- Oriented Programming)
- Added file/volume label date capability
-
-
-
- Credits:
-
-
- DD is similar to Peter Norton's FD utility in appearance and syntax,
- although DD is an original program.
-
- Thanks to Kim Kokkonen of TurboPower Software for his routine to
- calculate the starting cluster of a directory.
-
- Ray Duncan's book "Advanced MS-DOS", second edition, provided great
- insight into calculating 12-bit FAT entries. Thanks, Ray!
-
- Turbo Pascal is a registered trademark of Borland International.
- Turbo Professional is a registered tradmark of TurboPower Software.
- Peter Norton's FD is copyright Peter Norton Computing, Inc.
-
-
- Me:
-
- Send all comments, bugs, etc. to:
-
- Ted Stephens Home Phone (614)-898-3958
- 7067 SpringHouse Ln. Work Phone (614)-299-1441
- Columbus, OH 43229
-
- CIS 76515,3433